﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MaLu.Common;
using System.Data;
using MaLu.BusiLogic;
using System.Collections;

namespace MaluJg.web.Stats
{
    public partial class FormAjax : BasicPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Response.Clear();              

                DataTable dt = BLFarm.GetMoneyDetailByVillageIDAndYear(Provider, Year, VillageID);

                ArrayList arr = new ArrayList();
                foreach (DataColumn item in dt.Columns)
                {
                    arr.Add(item.ColumnName);
                }

                ArrayList arr1 = new ArrayList();
                arr1.Add("id");

                string str = BLJson.ToFlexiGrid(dt, arr, arr1, "id", 0, dt.Rows.Count);

                Response.Write(str);
                Response.End();
            }
        }
    }
}